package nciae.db.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;
@Data
@TableName("homework_detail")
public class HomeworkDetail {
      @TableId(type =  IdType.AUTO)
      private Integer id;
     @TableField("homework_id")
      private Integer homeworkId;
     @TableField("student_id")
      private Integer studentId;
      private String content;
     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private Timestamp submitDate;
      @TableField("is_read")
      private int isRead;
      private int score;
      private String comment;
      @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private Timestamp readDate;
      @TableField("expert_id")
      private Integer expertId;

      @TableField("url_file")
      private String urlFile;

      @TableField("url_img")
      private String urlImg;
}
